package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Setter
@Getter
public class Stock {

    private Long id;

    private String productName;//商品名称

    private String productSn;//商品编码

    private Double productSize;//商品规格

    private BigDecimal costPrice;//商品成本价

    private BigDecimal totalNumber;  //商品库存总数

    private BigDecimal totalAmount;   //商品库存总价值

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date inputTime;

    private Employee inputUser;  //录入人

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;  //盘点更新人

    private Employee updateUser;  //盘点人
}